import request from '@/utils/request'

// 查询君子币兑换配置列表
export function listJzbdh(query) {
  return request({
    url: '/business/jzbdh/list',
    method: 'get',
    params: query
  })
}

// 查询君子币兑换配置详细
export function getJzbdh(id) {
  return request({
    url: '/business/jzbdh/' + id,
    method: 'get'
  })
}

// 新增君子币兑换配置
export function addJzbdh(data) {
  return request({
    url: '/business/jzbdh',
    method: 'post',
    data: data
  })
}

// 修改君子币兑换配置
export function updateJzbdh(data) {
  return request({
    url: '/business/jzbdh',
    method: 'put',
    data: data
  })
}

// 删除君子币兑换配置
export function delJzbdh(id) {
  return request({
    url: '/business/jzbdh/' + id,
    method: 'delete'
  })
}
